package com.zyjc.city.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author ckj
 * @date 2024年04月01日 17:04
 */
public class LogUtil {
    public LogUtil() {
    }

    public static final void error(Class<?> clazz, String message, Throwable t) {
        Logger logger = LoggerFactory.getLogger(clazz);
        logger.error(message, t);
    }

    public static final void error(Class<?> clazz, Throwable t) {
        error(clazz, t.getMessage(), t);
    }

    public static final void info(Class<?> clazz, String message) {
        Logger logger = LoggerFactory.getLogger(clazz);
        logger.info(message);
    }
}
